import * as actions from './actions';
import * as getters from './getters';
import types from './types';

let state={
  data:[],
  pageList:[
    {
        pageId:1,
        pageItems:[
            1,2,3,4,5,6,7,8,9,10
        ]
    },
    {
        pageId:2,
        pageItems:[
             1,2,3,4,5,6,7,8,9,10
        ]
    },
    {
        pageId:3,
        pageItems:[
             1,2,3,4,5,6,7,8,9,10
        ]
    },
    {
        pageId:4,
        pageItems:[
            1,2,3,4,5,6,7,8,9,10
        ]
    }
  ]
}

let mutations={
    [types.update](state,data){
      state.data=state.data.map(s=>s);
    },
    [types.push_page](state,data){
      
    }
}

export default {
  state,
  mutations,
  actions,
  getters
}